package com.ruoyi.rescue.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.user.api.domain.CheCar;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 救援记录对象 che_rescue
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CheRescue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 救援类型（字典） */
    @Excel(name = "救援类型", readConverterExp = "字=典")
    private Long type;

    /** 求助人（用户外键） */
    @Excel(name = "求助人", readConverterExp = "用=户外键")
    private Long userId;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String phone;

    /** 起点 */
    @Excel(name = "起点")
    private String start;

    /** 终点 */
    @Excel(name = "终点")
    private String end;

    /** 位置（经纬度） */
    @Excel(name = "位置", readConverterExp = "经=纬度")
    private String address;

    /** 经度 */
    @Excel(name = "经度")
    private Long longitude;

    /** 维度 */
    @Excel(name = "维度")
    private Long latitude;

    /** 车辆id（外键） */
    @Excel(name = "车辆id", readConverterExp = "外=键")
    private Long carId;

    /** 救援时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "救援时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rescueTime;
    private SysUser sysUser;
    private CheCar cheCar;
    private String chepai;

    public String getChepai() {
        return chepai;
    }

    public void setChepai(String chepai) {
        this.chepai = chepai;
    }
}
